Optimal. Leaf size=29 \[ -\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \cosh ^n(x)}}{\sqrt{a}}\right )}{\sqrt{a} n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0867427, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {3230, 266, 63, 208} \[ -\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \cosh ^n(x)}}{\sqrt{a}}\right )}{\sqrt{a} n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3230
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\tanh (x)}{\sqrt{a+b \cosh ^n(x)}} \, dx &=\operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+b x^n}} \, dx,x,\cosh (x)\right )\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+b x}} \, dx,x,\cosh ^n(x)\right )}{n}\\ &=\frac{2 \operatorname{Subst}\left (\int \frac{1}{-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b \cosh ^n(x)}\right )}{b n}\\ &=-\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \cosh ^n(x)}}{\sqrt{a}}\right )}{\sqrt{a} n}\\ \end{align*}
Mathematica [A] time = 0.0216165, size = 29, normalized size = 1. \[ -\frac{2 \tanh ^{-1}\left (\frac{\sqrt{a+b \cosh ^n(x)}}{\sqrt{a}}\right )}{\sqrt{a} n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.028, size = 24, normalized size = 0.8 \begin{align*} -2\,{\frac{1}{n\sqrt{a}}{\it Artanh} \left ({\frac{\sqrt{a+b \left ( \cosh \left ( x \right ) \right ) ^{n}}}{\sqrt{a}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh \left (x\right )}{\sqrt{b \cosh \left (x\right )^{n} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.23934, size = 390, normalized size = 13.45 \begin{align*} \left [\frac{\log \left (\frac{b \cosh \left (n \log \left (\cosh \left (x\right )\right )\right ) + b \sinh \left (n \log \left (\cosh \left (x\right )\right )\right ) - 2 \, \sqrt{b \cosh \left (n \log \left (\cosh \left (x\right )\right )\right ) + b \sinh \left (n \log \left (\cosh \left (x\right )\right )\right ) + a} \sqrt{a} + 2 \, a}{\cosh \left (n \log \left (\cosh \left (x\right )\right )\right ) + \sinh \left (n \log \left (\cosh \left (x\right )\right )\right )}\right )}{\sqrt{a} n}, \frac{2 \, \sqrt{-a} \arctan \left (\frac{\sqrt{b \cosh \left (n \log \left (\cosh \left (x\right )\right )\right ) + b \sinh \left (n \log \left (\cosh \left (x\right )\right )\right ) + a} \sqrt{-a}}{a}\right )}{a n}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh{\left (x \right )}}{\sqrt{a + b \cosh ^{n}{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh \left (x\right )}{\sqrt{b \cosh \left (x\right )^{n} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]